﻿@using NewLife.Common
@{
    /**/

    var set = NewLife.Cube.Setting.Current;
}
<div class="kt-login__signin">
    <div class="kt-login__head">
        <h3 class="kt-login__title">登录</h3>
    </div>
    <div class="kt-login__form kt-form">
        @using (Html.BeginForm("Login", "User", new { r = ViewBag.ReturnUrl }, FormMethod.Post))
        {
            @Html.ValidationSummary()
            if (set.AllowLogin)
            {
                <div class="form-group">
                    <input class="form-control" type="text" name="username" id="username" autocomplete="off" placeholder="用户名">
                </div>
                <div class="form-group">
                    <input class="form-control form-control-last" type="password" id="password" placeholder="密码" name="password" autocomplete="off">
                </div>
                <div class="kt-login__extra">
                    <label class="kt-checkbox">
                        <input type="checkbox" value="true" id="remember" name="remember"> 记住我
                        <span></span>
                    </label>
                    <a href="javascript:;" id="kt_login_forgot" class="kt-link">忘记密码 ?</a>
                </div>
                <div class="kt-login__actions">
                    <button type="submit" class="btn btn-brand btn-pill btn-elevate">登录</button>
                </div>
            }
        }
    </div>
</div>




